<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- <link href="css/style.css" rel="stylesheet"> -->
    </head>
    <body>
    
    </body>
    <script>
        // window.name="tzx";
        // function getName(){
        //     console.log(this.name);
        // }

        // let user={
        //     name:"tzx123"
        // }
        // user.getName=getName;

        // this.getName();
        // getName();
        // window.getName();
        // user.getName();

        window.age=10;
        let getAge=()=>{
            console.log(this.age);
        }

        let user={
            age:20
        }

        user.getAge=getAge;
        getAge();
        user.getAge();
        window.getAge();
        

    </script>
</html>